#!/bin/sh

power=$(printf "shutdown\\nreboot\\nsuspend" | dmenu -p "Action:")
case "$power" in
	shutdown) sudo loginctl poweroff;;
	reboot) sudo loginctl reboot;;
	suspend) sudo loginctl \suspend;;
esac
